﻿using System;
using System.Collections.Generic;
using System.Text;
using Cashier_Utils;

namespace Cashier_Model
{
    [TableAttribute(Tablename = "supplier")]
    public class Supplier: BaseModel
    {
        private Int64 id;

        [TableAttribute(Columnname="id", Columntype="bigint", Iskey=true, Iscondition=true, Isdeletefield=true)]
        public Int64 Id
        {
            get { return id; }
            set { id = value; }
        }

        private String supplierno;

        [TableAttribute(Columnname = "supplier_no", Columntype="varchar", Iscondition=true, Isupdatefield=true)]
        public String Supplierno
        {
            get { return supplierno; }
            set { supplierno = value; }
        }

        private String shortname;

        [TableAttribute(Columnname = "shortname", Columntype = "varchar", Iscondition = true, Conditiontype = ConditionType.LIKE, Isupdatefield = true)]
        public String Shortname
        {
            get { return shortname; }
            set { shortname = value; }
        }

        private String name;

        [TableAttribute(Columnname = "name", Columntype = "varchar", Isupdatefield = true)]
        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        private String sex;

        [TableAttribute(Columnname = "sex", Columntype = "varchar", Isupdatefield = true)]
        public String Sex
        {
            get { return sex; }
            set { sex = value; }
        }

        private String position;

        [TableAttribute(Columnname = "position", Columntype = "varchar", Isupdatefield = true)]
        public String Position
        {
            get { return position; }
            set { position = value; }
        }

        private String tel;

        [TableAttribute(Columnname = "tel", Columntype = "varchar", Isupdatefield = true)]
        public String Tel
        {
            get { return tel; }
            set { tel = value; }
        }

        private String mobile;

        [TableAttribute(Columnname = "mobile", Columntype = "varchar", Isupdatefield = true)]
        public String Mobile
        {
            get { return mobile; }
            set { mobile = value; }
        }

        private String email;

        [TableAttribute(Columnname = "email", Columntype = "varchar", Isupdatefield = true)]
        public String Email
        {
            get { return email; }
            set { email = value; }
        }

        private String qq;

        [TableAttribute(Columnname = "qq", Columntype = "varchar", Isupdatefield = true)]
        public String Qq
        {
            get { return qq; }
            set { qq = value; }
        }

        private String website;

        [TableAttribute(Columnname = "website", Columntype = "varchar", Isupdatefield = true)]
        public String Website
        {
            get { return website; }
            set { website = value; }
        }

        private String company;

        [TableAttribute(Columnname = "company", Columntype = "varchar", Isupdatefield = true)]
        public String Company
        {
            get { return company; }
            set { company = value; }
        }

        private String address;

        [TableAttribute(Columnname = "address", Columntype = "varchar", Isupdatefield = true)]
        public String Address
        {
            get { return address; }
            set { address = value; }
        }

        private String zip;

        [TableAttribute(Columnname = "zip", Columntype = "varchar", Isupdatefield = true)]
        public String Zip
        {
            get { return zip; }
            set { zip = value; }
        }

        private String fax;

        [TableAttribute(Columnname = "fax", Columntype = "varchar", Isupdatefield = true)]
        public String Fax
        {
            get { return fax; }
            set { fax = value; }
        }

        private String note;

        [TableAttribute(Columnname = "note", Columntype = "varchar", Isupdatefield = true)]
        public String Note
        {
            get { return note; }
            set { note = value; }
        }

        private String bankName;

        [TableAttribute(Columnname = "bank_name", Columntype = "varchar", Isupdatefield = true)]
        public String BankName
        {
            get { return bankName; }
            set { bankName = value; }
        }

        private String bankAccount;

        [TableAttribute(Columnname = "bank_account", Columntype = "varchar", Isupdatefield = true)]
        public String BankAccount
        {
            get { return bankAccount; }
            set { bankAccount = value; }
        }

        private String payee;

        [TableAttribute(Columnname = "payee", Columntype = "varchar", Isupdatefield = true)]
        public String Payee
        {
            get { return payee; }
            set { payee = value; }
        }

        private DateTime createdate;

        [TableAttribute(Columnname = "createdate", Columntype = "datetime")]
        public DateTime Createdate
        {
            get { return createdate; }
            set { createdate = value; }
        }

        private String salesman;

        [TableAttribute(Columnname = "salesman", Columntype = "varchar", Isupdatefield = true)]
        public String Salesman
        {
            get { return salesman; }
            set { salesman = value; }
        }
    }
}
